﻿@using db = System.Data.Entity.Infrastructure;
@using si.caha.Repository;

@{
    // database recreation after changing the model =) fuckin' neat!
    db.Database.SetInitializer<DataContext>(new db.RecreateDatabaseIfModelChanges<DataContext>());

    // set authentication/authorization db connection
    WebSecurity.InitializeDatabaseConnection("DataContext", "Users", "UserId", "Email", true);

    // email settings
    WebMail.SmtpServer = "localhost";
    WebMail.UserName = "info@caha.si";
    WebMail.Password = "";
    WebMail.From = "info@caha.si";
}
